/**
 * 
 */
package v1c04;

import java.util.GregorianCalendar;

import v1c05.Person;

/**
 * @author gjunming@gmail.com
 * @version Aug 5, 2009 3:16:19 PM
 */
public class Employee extends Person {
	public static void main(String[] args) {
		Employee unitTest = new Employee("unitTest", "Hello world", 200.0,
				2007, 5, 15);
		System.out.println(unitTest.getName() + ": "
				+ unitTest.getDescription());
	}

	private Double salary;
	private int hireDay;

	public Employee(String name, String description, double salary, int year,
			int month, int day) {
		super(name, description);
		this.salary = salary;
		GregorianCalendar employeeDate = new GregorianCalendar(year, month, day);
		this.hireDay = employeeDate.get(GregorianCalendar.DAY_OF_MONTH);

	}

	/**
	 * @param salary
	 *            the salary to set
	 */
	public void setSalary(Double salary) {
		this.salary = salary;
	}

	/**
	 * @return the salary
	 */
	public Double getSalary() {
		return salary;
	}

	/**
	 * @param hireDay
	 *            the hireDay to set
	 */
	public void setHireDay(int hireDay) {
		this.hireDay = hireDay;
	}

	/**
	 * @return the hireDay
	 */
	public int getHireDay() {
		return hireDay;
	}
}